<?php

class memberzoneOrdersComponents extends myComponents{
	
	public function executeRender(){
		$this->node = $this->getRoute()->getObject();
		
		$this->orders = Doctrine::getTable('ProductOrder')->createQuery('orders')
							->select('*')
							->from('ProductOrder po')
							->where('po.public_user_id = ?', $this->getUser()->getObject()->getId())
							->andWhere('po.is_hidden = ?', false)
							->orderBy('po.created_at DESC')
							->execute();
	}
	
}